import {request} from './request';

export function register(form){
  return request({
    url:'/users/registation',
    method:"POST",
    data:form,
  })
}

export function updateInfo(form){
  return request({
    url:'/users/updateusermessage',
    method:'POST',
    data:form
  })
}

export function login(form){
  return request({
    url:'/users/login',
    method:"POST",
    data:form,
  })
}

export function getInfo(){
  return request({
    url:'/users/info',
    method:"GET"
  })
}

export function logout(){
  return request({
    url:'/users/loginout',
    method:"POST"
  })
}

export function sendEmail(form){
  return request({
    url:'/users/sendemail',
    method:"POST",
    data:form
  })
}
export function restpassword(form){
  return request({
    url:'/users/restpassword',
    method:"POST",
    data:form
  })
}

